import unittest

if __name__ == '__main__':
    test_dir= r'../test_case'
    #批量加载测试用例
    discover = unittest.defaultTestLoader.discover(test_dir,pattern='test*.py')
    runner = unittest.TextTestRunner()
    runner.run(discover)#批量执行测试用例

